.home {
  /*修复返回顶部时不起效的 bug overflow 必须默认*/
  /*overflow: auto;*/
  height: calc(100vh - 60px);
}

.home-wrap {
  min-height: calc(100% - 90px);
  padding-top: 20px;
}

.home-inter-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}

.home-body {
  flex: 1;
  margin-right: 20px;
  background-color: #fff;
  padding: 0 20px;
  margin-bottom: 20px;
}

.home-body-nav {
  color: #262626;
}

/* 头部导航 */
.category--item {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 2.3rem;
  white-space: nowrap;
}

.category--item:hover {
  color: var(--pai-brand-2-hover);
}

.category--item:first-child {
  padding-left: 0;
}

.category--active {
  color: var(--pai-brand-1-normal);
}

.category-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 0;
}

.align-content-start {
  overflow-x: auto;
}

/* 头部搜索 */
.search-has-result ul {
  margin-bottom: 0;
  list-style-type: none;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.77778rem;
  margin-top: 0;
}

.search-has-result ul li a {
  --tw-border-opacity: 1;
  border: 0 solid;
  border-bottom-width: 1px;
  border-color: rgba(127, 125, 131, var(--tw-border-opacity));
}

.search-has-result ul li span.text-sm {
  line-height: 2.4rem;
}

.hover\:bg-gray-400:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(127, 125, 131, var(--tw-bg-opacity));
}

.search-result-block .search-no-result mark {
  font-size: 1.2rem;
}

.category-search-btn,
.category-cancel-btn {
  align-self: center;
  justify-items: center;
  background-color: transparent;
  background-image: none;
  border: none;
}

.category-search-btn:hover,
.category-cancel-btn:hover {
  color: var(--pai-brand-2-hover);
}

.svg-inline--fa,
svg:not(:root).svg-inline--fa {
  overflow: visible;
}

.svg-inline--fa.fa-w-16 {
  width: 1.2em;
}

.svg-inline--fa.fa-w-14 {
  width: 1em;
}

/*主要文章详情页 头部图片*/
.home-carouse-wrap {
  background-color: #346;
  padding: 20px;
}

.home-carouse-inter-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.home-carouse-item {
  width: calc((100% - 60px) * 0.25);
  transition: all 0.2s ease 0s;
  box-shadow: 0 6px 12px 0 rgb(0 0 0 / 25%);
}

.home-carouse-item img {
  width: 100%;
  height: 150px;
}

.home-carouse-item-body {
  background-color: #fff;
  padding: 20px;
  height: 160px;
}

.home-carouse-item-title {
  font-size: 18px;
  font-weight: 700;
  height: 58px;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-carouse-item-dot {
  display: inline-block;
  background-color: #a2a2a2;
  border-radius: 100%;
  height: 8px;
  width: 8px;
  margin-right: 4px;
  flex-shrink: 0;
}

.home-carouse-item-tag {
  display: flex;
  align-items: center;
  color: #a2a2a2;
  font-size: 14px;
}

.home-carouse-item-first-text {
  font-weight: 900;
  padding: 0 8px;
  align-items: center;
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-carouse-item-tag .home-carouse-item-first-text:not(:last-child):after {
  position: absolute;
  right: -1px;
  display: block;
  content: " ";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4e5969;
}

.home-carouse-item-tag .author {
  padding-left: 8px;
  color: #a2a2a2;
  display: inline-block;
  max-width: 100px;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-carouse-item:hover {
  transform: translateY(-4px);
}

/* home 适配 */
@media screen and (max-width: 768px) {
  .home-right,
  .home-carouse-wrap {
    display: none;
  }
  .home-body {
    margin-right: 0;
  }

  .home-wrap {
    padding-top: 0;
  }

  .user-article-item-value-text {
    -webkit-line-clamp: 3;
  }
  .home-inter-wrap {
    width: auto;
    display: block;
  }
  .user-article-img {
    width: 110px;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    right: 0;
  }
  .align-content-start {
    padding: 4px 18px;
  }
  .cdc-article-panel__operate {
    margin-left: 8px;
  }
  .article-show-wrap {
    margin-right: 8px;
  }

  .cdc-article-panel__inner:has(.user-article-img) .cdc-article-panel__media {
    max-width: 65%;
  }
}